package com.example.chirdrenserver.Pojo.vo.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(description = "评论视图对象")
public class CommentVO {
    @ApiModelProperty(value = "评论ID", example = "123456")
    private Long commentId;

    @ApiModelProperty(value = "评论内容", example = "这篇文章非常有帮助！")
    private String content;

    @ApiModelProperty(value = "用户ID", example = "456")
    private Long userId;

    @ApiModelProperty(value = "帖子ID", example = "789")
    private Long postId;

    @ApiModelProperty(value = "父评论ID", example = "0", notes = "0表示顶级评论")
    private Long parentCommentId;

    @ApiModelProperty(value = "创建时间", example = "2025-06-30T10:15:30")
    private LocalDateTime createTime;
    
    @ApiModelProperty(value = "用户昵称", example = "Spring爱好者")
    private String nickname;

    @ApiModelProperty(value = "用户头像", example = "https://example.com/avatar.jpg")
    private String avatar;

    @ApiModelProperty(value = "回复列表", notes = "该评论的直接回复列表")
    private List<CommentVO> replies;
}